/*
 * Copyright 2012 the purple river software Co., Ltd.
 * 
 * http://www.purple-river.com
 */
package com.jqd.framework.core.hessian.web.controller;

import com.jqd.framework.core.exception.WebControllerException;
import com.jqd.framework.core.hessian.model.ServiceRequest;
import com.jqd.framework.core.hessian.model.ServiceResponse;

/**
 * 
 * TODO
 * 
 * @author liaozhicheng@purple-river.com
 * @date 2012-3-21
 * @since 1.0
 */
public interface DispatchService {
	
	String DEFAULT_DISPATCH_SERVICE_NAME = "remoteAppServiceClient";
	
	
	ServiceResponse doDispatch(ServiceRequest serviceRequest) throws WebControllerException;
	
	
	ServiceResponse doDispatch(ServiceRequest serviceRequest, final String serviceName)
			throws WebControllerException;
	
}
